home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
UTILITY2
/
RFDML120.ZIP
/
UNIX.SCR
< prev
next >
Wrap
Text File
|
1994-02-03
|
20KB
|
725 lines
;------------------------------------------------------
;
;UNIX.SCR --- The script file for UNIX (world.std.com)
;
;------------------------------------------------------
;
; We begin with the format specifiers to which allow
;the script to identify where the MailId, RealName,
;and Subject texts are in a newly downloaded letter.
;
Format
Subject: $SUBJECT$\n
Subj: $SUBJECT$\n
From: "$NAME$" <$UID$>\n
From: ""$NAME$"" <$UID$>\n
From: $NAME$<$UID$>\n
From: $UID$ ($NAME$)\n
From: $UID$ \n
From: $UID$\n
Endformat
;------------------------------------------------------
;
; Next is a set of aliases which determine various
; items such as where some of the standard commands
; like '/usr/ucb/mail' live.
;
Alias sendmail '/usr/ucb/mail '
Alias readmail '/usr/ucb/mail'
Alias saveletter 's '
Alias deleteletter 'd '
Alias quitmail 'q'
Alias mailnull '#'
Alias mailshellesc '!'
Alias rm '/bin/rm -f '
Alias echo '/bin/echo '
Alias cat '/bin/cat '
Alias logoff 'exit'
;------------------------------------------------------
;
; The following aliases determine the various prompts the
; script will look for. The most important one is the
; 'prompt' alias, which will need to be adjusted to match
; the prompt that your UNIX host gives.
;
Alias prompt '\nworld%'
Alias mailprompt '\n& '
Alias subjectprompt '\nSubject: '
Alias ccprompt1 'Cc:'
Alias ccprompt2 'CC:'
Alias ccprompt3 'cc:'
Alias loginprompt '\nlogin: '
Alias passwdprompt '\nPassword:'
Alias havemailprompt 'message'
Alias nomailprompt 'No mail'
Alias nodiskprompt1 'Disc quota exceeded'
Alias nodiskprompt2 'file system is full'
Alias nodiskprompt3 'no such file'
;
; If you want to append your ~/.signature file to every outgoing
; message, set the following alias to SEND_SIG, otherwise set it
; to NO_SIGNATURE:
;
Alias signature NO_SIGNATURE
;
;------------------------------------------------------
;
; The following aliases determine what the script will look
; for to determine that we've successfully logged in
; (banner1-3), and what it will look for to determine that
; we've successfully logged out (logoffbanner1-2)
;
Alias banner1 'Public Access Unix'
Alias banner2 'New World'
Alias banner3 '\nLast login:'
Alias logoffbanner1 %loginprompt%
Alias logoffbanner2 'closed'
;------------------------------------------------------
;
; The following alias determines what intermediate network
; will be assumed. It can be one of the following:
;
; DIRECT Direct connection to the host (default)
; DIRLAT Direct connection to a LAT
; CIS Connect through CIS Packet Net
;
Alias connectype DIRECT
;
; The following alias should be set TRUE if your modem
; drops carrier every time you make a connection. This
; alias simply forces the script to wait 2 seconds for
; the connection to settle before starting the script.
;
Alias waitasec FALSE
;
;------------------------------------------------------
;
; The following aliases define the connection and password
; keywords to specify for CIS Packet Net. They are currently
; set to connect to world.std.com, and need to be changed
; for any other UNIX site.
;
Alias cisconnect 'world,domestic'
Alias cispasswd 'notobvious'
Alias cisconnprompt 'Connected to world.std.com'
;
;------------------------------------------------------
;
; Set the following aliases to reflect your LAT's prompt if you
; are connecting through a LAT:
;
Alias latprompt1 'local>'
Alias latprompt2 'Local>'
;
; Set the following alias to be the command which connects your LAT
; to the host
;
Alias hostconnect 'open hostname'
;
;------------------------------------------------------
;
; The following aliases determine the command to use for
; downloading, and the prompt the upload program will send
; when it's ready to send data. Comment these out if
; you don't want to use ZMODEM:
;
Alias sz 'sz '
Alias szprompt1 '\nsz: 1 file'
Alias dnloadproto ZMODEM
;
; Uncomment the following aliases if you want to use YMODEM
; as your download protocol:
;
;Alias sz 'sb '
;Alias szprompt1 '\nsb: 1 file'
;Alias dnloadproto YMODEM
;
; Uncomment the following aliases if you want to use XMODEM
; as your download protocol:
;
;Alias sz 'sx '
;Alias szprompt1 'command now.'
;Alias dnloadproto XMODEM
;
;------------------------------------------------------
;
; The following aliases determine the command to use for
; uploading, and the prompt the upload program will send
; when it's ready to receive data. Comment these out if
; you don't want to use ZMODEM:
;
Alias rz 'rz -a '
Alias rzprompt1 'to your modem'
Alias rzprompt2 'ready'
Alias uploadproto ZMODEM
;
; Uncomment the following aliases if you want to use YMODEM
; as your upload protocol:
;
;Alias rz 'rb -a '
;Alias rzprompt1 'to your modem'
;Alias rzprompt2 'ready'
;Alias uploadproto YMODEM
;
; Uncomment the following aliases if you want to use XMODEM
; as your upload protocol:
;
;Alias rz 'rx -ac '
;Alias rzprompt1 'to your modem'
;Alias rzprompt2 'ready to receive'
;Alias uploadproto XMODEM
;
; Uncomment the following aliases if you want to use KERMIT
; as your upload protocol:
; (note that you *must* use kermit on CIS Packet Net)
;
;Alias rz 'kermit -e 256 -r '
;Alias rzprompt1 'READY TO RECEIVE'
;Alias rzprompt2 'ready to receive'
;Alias uploadproto KERMIT
;
;------------------------------------------------------
; This is the main entry-point for the script, which
; decides which intermediate network will be used to
; connect to the host.
;
Begin START
If %waitasec% Then WAIT_START
If TRUE Then %connectype%
End
Begin WAIT_START
Timeout 2 Goto %connectype%
End
;------------------------------------------------------
; This is the entry-point for direct-connection to the
; host. This state merely sends CR's every three
; seconds until it sees a login prompt.
;
Begin DIRECT
Caption 'connected'
Cr
When %loginprompt% Goto USERNAME
Timeout 3 Goto START
End
;------------------------------------------------------
; This is the entry-point for the CIS Packet Net connection
; to the host. It merely answers the Host Name and Password
; prompts for the desired host. Don't worry about the
; seemingly 'garbaged' When statements. They are that way
; to account for an 8n1 connection to a CIS node which
; insists on talking 7e1.
;
Begin CIS
Caption 'connected'
Cr
When '\nHost Name:' Goto CISHOSTNAME
When 'Ho≤táNßφe:' Goto CISHOSTNAME
Timeout 3 Goto CIS
End
Begin CISHOSTNAME
Transmit %cisconnect%
Cr
When '\nHost Name:' Goto CISHOSTNAME
When 'Ho≤táNßφe:' Goto CISHOSTNAME
When '\nPassword:' Goto CISHOSTPASSWORD
When 'Pß≤≤worΣ:' Goto CISHOSTPASSWORD
Timeout 30 Goto GIVE_UP
End
Begin CISHOSTPASSWORD
Transmit %cispasswd%
Cr
When '\nHost Name:' Goto CISHOSTNAME
When 'Ho≤táNßφe:' Goto CISHOSTNAME
When '\nPassword:' Goto CISHOSTPASSWORD
When 'Pß≤≤worΣ:' Goto CISHOSTPASSWORD
When %cisconnprompt% Goto CONNECTHOST
When %loginprompt% Goto USERNAME
Timeout 30 Goto GIVE_UP
End
Begin CONNECTHOST
Caption 'logging in'
When %loginprompt% Goto USERNAME
Timeout 30 Goto GIVE_UP
End
;------------------------------------------------------
; These two states handle connecting to the host
; once we're directly connected to the LAT
;
Begin DIRLAT
Caption 'connected'
Cr
When %latprompt1% Goto LOCAL_PROMPT
When %latprompt2% Goto LOCAL_PROMPT
Timeout 3 Goto START
End
Begin LOCAL_PROMPT
Transmit %hostconnect%
Cr
When %latprompt1% Goto LOCAL_PROMPT
When %latprompt2% Goto LOCAL_PROMPT
When %loginprompt% Goto USERNAME
Timeout 30 Goto GIVE_UP
End
;------------------------------------------------------
; At this point we've seen the host's login prompt, and
; are attempting to log in.
;
Begin USERNAME
Transmit $USERNAME
Cr
When %passwdprompt% Goto PASSWORD
When %loginprompt% Goto USERNAME
Timeout 120 Goto NO_LOGIN
End
Begin PASSWORD
Transmit $PASSWORD
Cr
When %passwdprompt% Goto PASSWORD